<?php
/* @var $this FamliyinfoController */
/* @var $model Famliyinfo */

$this->breadcrumbs=array(
	'家庭成员'=>array('index'),
	'管理',
);

$this->menu=array(
	array('label'=>'List Famliyinfo', 'url'=>array('index')),
	array('label'=>'Create Famliyinfo', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#famliyinfo-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php //echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php
    $model->userid = Yii::app()->request->getParam('userid'); 
    $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'famliyinfo-grid',
	'dataProvider'=>$model->search(),
	//'filter'=>$model,
	'columns'=>array(
		'id',
		'hzxx.userID',
        'hzxx.username',
		'fname',
		'fsex',
		'fage',
		'ftype',
		
		'fmoney',
		'fdbzh',
		'fszsq',
		'fUID',
		'ftel',
		'faddress',
		/*'tmpi1',
		'tmpi2',
		'tmpi3',
		'tmps1',
		'tmps2',
		'tmps3',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
